package org.hxyjs.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.hxyjs.entity.Parents;
import org.hxyjs.entity.ParentsExample;

public interface ParentsMapper {
    long countByExample(ParentsExample example);

    int deleteByExample(ParentsExample example);

    int deleteByPrimaryKey(String pno);

    int insert(Parents record);

    List<Parents> getParentsByPage(Map map);

    Parents selectParentsWithChildren(String pno);

    String getMaxPno();

    Parents getAccountByAccountName(String pname);


    int insertSelective(Parents record);

    List<Parents> selectByExample(ParentsExample example);

    Parents getParentsWithOrdrees(String pno);

    Parents selectByPrimaryKey(String pno);

    int updateByExampleSelective(@Param("record") Parents record, @Param("example") ParentsExample example);

    int updateByExample(@Param("record") Parents record, @Param("example") ParentsExample example);

    int updateByPrimaryKeySelective(Parents record);

    int updateByPrimaryKey(Parents record);
    int updateByPrimaryKeys(Parents record);

}